package com.facefun.Enum;

import com.fasterxml.jackson.annotation.JsonFormat;

@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum StateCode {

	SUCCESS("成功",200),
	NOTEXISIT("不存在",404),
	Error("系统异常",500);
	
	private String state;
	private int code;
	
	public String getState() {
		return state;
	}

	public int getCode() {
		return code;
	}


	private StateCode(String state,int code){
		this.state=state;
		this.code=code;
	}
	
	
	
}
